import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:DELL
 * Date:2025-02-28
 * Time:20:59
 */
public class Text2 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int n=scanner.nextInt();
        int[] a=new int[n];
        for (int i = 0; i < n; i++) {
            a[i]=scanner.nextInt();
        }
        int ret=countNewHigtPosition(a);
        System.out.println(ret);
    }
    public static int countNewHigtPosition(int[] a){
        if(a==null&&a.length==0){
            return 0;
        }
        int max=a[0];
        int count=1;
        for (int i = 1; i < a.length; i++) {
            if(a[i]>max){
                count++;
                max=a[i];
            }
        }
        return count;
    }
}
